<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <script src="http://apps.bdimg.com/libs/angular.js/1.4.6/angular.min.js"></script>
</head>
<body ng-app="myNoteApp" ng-controller="myNoteCtrl">

<h2>我的笔记</h2>


<textarea ng-model="message" cols="40" rows="10"></textarea>

<p>
    <button ng-click="save()">保存</button>
    <button ng-click="clear()">清除</button>
    <button ng-click="read()">恢复</button>
</p>

<p>剩余字数: <span ng-bind="left()"></span></p>

<script src="controller/myNoteApp.js"></script>

</body>
</html>
